package com.java.comprehensive.design.behavioral_model.mediator_pattern;

public class Client {
    public static void main(String[] args) {
        MediatorStructure mediator = new MediatorStructure();

        Tenant person = new Tenant("李四", mediator);
        HouseOwner houseOwner = new HouseOwner("土豪", mediator);

        mediator.setTenant(person);
        mediator.setHouseOwner(houseOwner);

        person.constact("我要三居室！");
        houseOwner.constact("我这里有！");


    }
}
